package com.kotlin.app.ui

import android.view.View
import com.kotlin.app.R
import com.kotlin.app.controller.MainActivity
import org.jetbrains.anko.*

class MainActivityUI : AnkoComponent<MainActivity>{
    override fun createView(ui: AnkoContext<MainActivity>): View {
        return ui.apply {
            linearLayout {
                padding = dip(16)
                textView{
                    text = "hello world"
                    textColorResource = R.color.colorAccent
                    textSize = 20f
                    visibility = View.VISIBLE
                }
            }
        }.view
}
}